package com.hnas.hnt.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hnas.core.dao.HntBaseDaoImpl;
import com.hnas.hnt.orm.HntEmployeeCard;

@Component("hntEmployeeCardDAO")
public class HntEmployeeCardDAOImpl extends HntBaseDaoImpl<HntEmployeeCard> implements HntEmployeeCardDAO {

	public HntEmployeeCardDAOImpl() {
		super(HntEmployeeCard.class);
	}

	@Override
	public List<HntEmployeeCard> getCardList(String employeeId) {
		String hql = "from HntEmployeeCard t where t.EMPLOYEE_ID = ?1";
		return this.findByQuery(hql, employeeId);
	}

}
